export default function (state = { count: 0, resolve: () => {} }, action = {}) {
  switch (action.type) {
    case "GETSUM":
      console.log("action");
      return Object.assign({}, state, { count: state.count + action.data });
    default:
      return state;
  }
}
